package com.cluster.platform.service;

import com.cluster.platform.common.api.CommonResult;
import com.cluster.platform.model.PmsSecondProduct;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface PmsSecondProductService {

    // 新增
    @Transactional
    CommonResult<Object> addPmsSecondProduct(PmsSecondProduct pmsSecondProduct);

    // 删除 逻辑
    @Transactional
    CommonResult<Object> delPmsSecondProduct(String id,String username);

    //批量
    @Transactional
    CommonResult<Object> delBatchPmsSecondProduct(List<String> ids,String username);

    // 删除 物理
    @Transactional
    CommonResult<Object> deletePmsSecondProduct(String id);

    // 批量
    @Transactional
    CommonResult<Object> deleteBatchPmsSecondProduct(List<String> ids);

    // 更新
    @Transactional
    CommonResult<Object> updatePmsSecondProduct(PmsSecondProduct pmsSecondProduct);

    // 条件查询
    CommonResult<Object> searchPmsSecondProduct(String id);

    // 分页查询
    CommonResult<Object> searchPmsSecondProductByLimit(Integer pageSize,Integer pageNum);

    // 分页查询可用
    CommonResult<Object> searchPmsSecondProductByStatus(Integer pageSize,Integer pageNum);

    CommonResult<Object> searchPmsSecondProductByName(String name, Integer status, Integer pageSize, Integer pageNum);
}
